/*
 *  $Id: Natural.cs 975 2009-12-16 17:13:22Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima {
    /// <summary>
    /// Группа для врожденных эффектов
    /// </summary>
    public class NaturalAffect: GroupAffect, ICollector<Affect> {
        private SummonableCard _card;

        public NaturalAffect(SummonableCard card) {
            _card = card;
            card.CollectNaturalAffects(this);
        }

        public override string Id {
            get { return "natural"; }
        }

        public override bool Dispellable {
            get { return false; }
        }

        public override Affect Clone() {
            return new NaturalAffect(_card);
        }

        void ICollector<Affect>.Add(Affect item) {
            this.Add(item);
        }
        void ICollector<Affect>.Add<D>() {
            this.Add(new D());
        }
    }
}